package ribbonconfiguration;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName RibbonConfiguration
 * @Description TODO
 * @Author cph
 * @Date 2020/9/28 18:08
 * @Version 1.0
 */
@Configuration
public class RibbonConfiguration {

    @Bean
    public IRule rule (){
        return new RandomRule();
    }
}
